package com.caifu.pojo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author GZ
 * @since 2020-11-05
 */
public class YlBuilding extends Model<YlBuilding> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID（楼苑编号）
     */
    @TableId("BUILDING_NO")
    private Integer buildingNo;

    /**
     * 楼苑名称（唯一验证，字段唯一）
     */
    @TableField("BUILDING_NAME")
    private String buildingName;

    /**
     * 楼苑图片
     */
    @TableField("BUILDING_IMG")
    private String buildingImg;

    /**
     * 面向人群
     */
    @TableField("BUILDING_USE")
    private String buildingUse;

    /**
     * 养老机构编号
     */
    @TableField("PENSION_NO")
    private String pensionNo;

    /**
     * 楼苑状态（1：正常 9：删除）
     */
    @TableField("BUILDING_STATE")
    private String buildingState;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 管理员编号
     */
    @TableField("TELLER_NO")
    private String tellerNo;

    @TableField(exist = false)
    private int totalFloor;  //总层数

    @TableField(exist = false)
    private int totalBed;  //总床数

    @TableField(exist = false)
    private int emptyBed;  //空床数

    public Integer getBuildingNo() {
        return buildingNo;
    }

    public void setBuildingNo(Integer buildingNo) {
        this.buildingNo = buildingNo;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }
    public String getBuildingImg() {
        return buildingImg;
    }

    public void setBuildingImg(String buildingImg) {
        this.buildingImg = buildingImg;
    }
    public String getBuildingUse() {
        return buildingUse;
    }

    public void setBuildingUse(String buildingUse) {
        this.buildingUse = buildingUse;
    }

    public String getPensionNo() {
        return pensionNo;
    }

    public void setPensionNo(String pensionNo) {
        this.pensionNo = pensionNo;
    }

    public String getBuildingState() {
        return buildingState;
    }

    public void setBuildingState(String buildingState) {
        this.buildingState = buildingState;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getTellerNo() {
        return tellerNo;
    }

    public void setTellerNo(String tellerNo) {
        this.tellerNo = tellerNo;
    }

    public int getTotalFloor() {
        return totalFloor;
    }

    public void setTotalFloor(int totalFloor) {
        this.totalFloor = totalFloor;
    }

    public int getTotalBed() {
        return totalBed;
    }

    public void setTotalBed(int totalBed) {
        this.totalBed = totalBed;
    }

    public int getEmptyBed() {
        return emptyBed;
    }

    public void setEmptyBed(int emptyBed) {
        this.emptyBed = emptyBed;
    }

    @Override
    protected Serializable pkVal() {
        return this.buildingNo;
    }

    @Override
    public String toString() {
        return "YlBuilding{" +
        "buildubgNo=" + buildingNo +
        ", buildingName=" + buildingName +
        ", buildingImg=" + buildingImg +
        ", buildingUse=" + buildingUse +
        ", pension No=" + pensionNo +
        ", buildingState=" + buildingState +
        ", createTime=" + createTime +
        ", tellerNo=" + tellerNo +
        "}";
    }
}
